package com.blog4j.common.utils;


import com.blog4j.common.model.LogVo;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2024/8/19 12:44
 **/
public class OperationLogHolder {
    private static final ThreadLocal<LogVo> logVoHolder = new ThreadLocal<>();

    public static void setLogVo(LogVo logVo) {
        logVoHolder.set(logVo);
    }


    public static LogVo getLogVo() {
        return logVoHolder.get();
    }


    public static void removeLogVo() {
        logVoHolder.remove();
    }
}
